<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%
	String path =request.getContextPath();
%>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
	<script language="javascript" type="text/javascript" src="<%=path%>/js/validatorTool.js"></script>
	
    <script language="javascript" type="text/javascript">
		function exportData(){
			form1.action="<%=path%>/contract/exportCtData?isList=y";
			form1.submit();
		}
	
	</script>
</head>
<body class="fullbody">
            <div class="context">
                <div class="position">
                    <div class="tposi">当前位置：
                        <a href="javascript:changeMenu(1,'<%=path%>/infopub/pubmain?menuid=1');"class="linkstyle">首页</a>&nbsp;&gt;&gt;&nbsp;
                   		 <a href="javascript:changeMenu(3,'');" class="linkstyle">我的订单\合同</a>&nbsp;&gt;&gt;&nbsp;
                        <span class="curposition">我的合同</span>
                    </div>
                    <div class="help">
						<a href="javascript:void(null);" onclick="doHelp('<%=request.getContextPath()%>/help/html/WDHT.html');" class="linkstyle">帮助</a>
					</div>    
                </div>
                <div class="margin8"></div>
                <div class="subpage_title">
                    <div class="title_index">
                        <img src="<%=path%>/images/common/dot03.gif" alt="" border="0" />&nbsp;我的合同</div>
                </div>
                <div class="margin20"></div>
                <div class="subpage_bidlist">
                    <div class="subpage_search" >
                    	<form name="form1" action="<%=path%>/contract/qryContract" method="post">
	                        <table border="0" cellpadding="0" cellspacing="0" class="searchtable">
	                            <tr>
	                                <td valign="middle" class="w_1">合同编号：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryCtNo" name="qryCtNo" type="text"  value="${qryCtNo}"  class="searchtext" />
	                                </td>
	                                <td valign="middle" class="w_1">合同名称：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryCtName" name="qryCtName" type="text" value="${qryCtName}" class="searchtext" />
	                                </td>
	                            </tr>
	                            <tr>
	                            	<td valign="middle" class="w_1">合同生效日期：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryCtValidBeginDate" name="qryCtValidBeginDate" type="text" 
   											onclick="return showCalendar('qryCtValidBeginDate', 'y-mm-dd');" 
	                                    	value="${qryCtValidBeginDate}" class="searchdate" readonly="readonly" />&nbsp;至&nbsp;
	                                    <input id="qryCtValidEndDate" name="qryCtValidEndDate" type="text" 
	                                    	onclick="return showCalendar('qryCtValidEndDate', 'y-mm-dd');"   
	                                    	value="${qryCtValidEndDate}" class="searchdate" readonly="readonly"/>
	                                </td>
	                                <td valign="middle" class="w_1">合同失效日期：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryCtInValidBeginDate" name="qryCtInValidBeginDate" type="text" 
	                                    	onclick="return showCalendar('qryCtInValidBeginDate', 'y-mm-dd');"   
	                                    	value="${qryCtInValidBeginDate}" class="searchdate" readonly="readonly"/>&nbsp;至&nbsp;
	                                    <input id="qryCtInValidEndDate" name="qryCtInValidEndDate" type="text" 
	                                    	onclick="return showCalendar('qryCtInValidEndDate', 'y-mm-dd');" 
		                                    value="${qryCtInValidEndDate}" class="searchdate" readonly="readonly"/>
	                                </td>
	                            </tr>
	                            <tr>
	                               <td valign="middle" class="w_1"> 产品名称：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryProdName" name="qryProdName" type="text" value="${qryProdName}" class="searchtext" />
	                                </td>
	                                 <td valign="middle" class="w_1">生产厂商：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryProdFactory" name="qryProdFactory" type="text" value="${qryProdFactory}" class="searchtext" />
	                                </td>
	                            </tr>
	                            <tr><td colspan="4">&nbsp;</td></tr>
	                            <tr>
	                                <td valign="middle" colspan="4" align="center">
	                                    <input type="submit" class="btnscs" value="查询" />&nbsp;&nbsp;
	                                    <input type="button" class="btnscs" value="取消" onclick="resetData()"/>&nbsp;&nbsp;
	                                    <input type="button" class="btnscs" value="导出" onclick="exportData()" <c:if test="${ctForms11==null}">disabled</c:if>/>
	                                </td>
	                            </tr>
	                        </table>
                        </form>
                    </div>
                    <div class="margin20">
                    </div>
                    <tr><th><b>合同总金额 （元）：${hzhj.totalTaxHZPrice}</b></th></tr></p>
                    <div>
                        <table class="tableCss" cellpadding="0" cellspacing="0">
                            <tr class="titleTr">
                                <th width="136px">合同编号</th>
                                <th width="240px">合同名称</th>
                                <th width="75px">版本号 </th>
                                <th width="117px">合同签定日期</th>
                                <th width="116px">计划生效日期</th>
                                <th width="116px" class="th1">计划失效日期</th>
                                <th width="150px" class="th1">合同金额（元）</th>
                            </tr>
                            <c:if test="${ctForms11!=null}"> 
								<c:forEach items="${ctForms11}" var="ctForm" varStatus="index">
									<c:if test="${ctForm.index % 2==1}">
										<tr align="left" class="contTr-old"  >
									</c:if>
									<c:if test="${ctForm.index % 2==0}">
										<tr align="left" class="contTr-even">
									</c:if>
										<td class="td1"><a href="<%=path%>/contract/contractDetail?ctpk=${ctForm.pkContract}">${ctForm.billNo}</a></td>
										<td class="td1">${ctForm.ctName}</td>
										<td class="td1">${ctForm.versionNo}</td>
										<td class="td1">${ctForm.ctSignDate}</td>
										<td class="td1">${ctForm.ctValiddate}</td>
										<td class="td1">${ctForm.ctInvalidate}</td>
										<td class="td1">${ctForm.totalTaxGroupPrice}</td>
									</tr>
								</c:forEach>
							</c:if>
						 
                        </table>
                    </div>
                    <div class="margin8"></div>
                    <div class="margin8">
                    	<table align="left">
							<tr class="title">
								<td>
									<div id="message" class="msgcolor">${system_err_msg}</div>
								</td>
							</tr>
						</table>
					</div> 
                </div>
            </div>
        <div class="margin20"></div>
</body>
</html>